home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMCSSMozDocumentRule.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  117 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMCSSMozDocumentRule.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMCSSMozDocumentRule_h__
  6. #define __gen_nsIDOMCSSMozDocumentRule_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMCSSRule_h__
  10. #include "nsIDOMCSSRule.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMCSSMozDocumentRule */
  19. #define NS_IDOMCSSMOZDOCUMENTRULE_IID_STR "4eb9adac-afaf-4b8a-8640-7340863c1587"
  20.  
  21. #define NS_IDOMCSSMOZDOCUMENTRULE_IID \
  22.   {0x4eb9adac, 0xafaf, 0x4b8a, \
  23.     { 0x86, 0x40, 0x73, 0x40, 0x86, 0x3c, 0x15, 0x87 }}
  24.  
  25. /**
  26.  * Modified version of nsIDOMCSSMediaRule for @-moz-document rules.
  27.  */
  28. class NS_NO_VTABLE nsIDOMCSSMozDocumentRule : public nsIDOMCSSRule {
  29.  public: 
  30.  
  31.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSMOZDOCUMENTRULE_IID)
  32.  
  33.   /* readonly attribute nsIDOMCSSRuleList cssRules; */
  34.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) = 0;
  35.  
  36.   /* unsigned long insertRule (in DOMString rule, in unsigned long index)  raises (DOMException); */
  37.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) = 0;
  38.  
  39.   /* void deleteRule (in unsigned long index)  raises (DOMException); */
  40.   NS_IMETHOD DeleteRule(PRUint32 index) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSIDOMCSSMOZDOCUMENTRULE \
  46.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules); \
  47.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval); \
  48.   NS_IMETHOD DeleteRule(PRUint32 index); 
  49.  
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  51. #define NS_FORWARD_NSIDOMCSSMOZDOCUMENTRULE(_to) \
  52.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return _to GetCssRules(aCssRules); } \
  53.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return _to InsertRule(rule, index, _retval); } \
  54.   NS_IMETHOD DeleteRule(PRUint32 index) { return _to DeleteRule(index); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIDOMCSSMOZDOCUMENTRULE(_to) \
  58.   NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssRules(aCssRules); } \
  59.   NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertRule(rule, index, _retval); } \
  60.   NS_IMETHOD DeleteRule(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteRule(index); } 
  61.  
  62. #if 0
  63. /* Use the code below as a template for the implementation class for this interface. */
  64.  
  65. /* Header file */
  66. class nsDOMCSSMozDocumentRule : public nsIDOMCSSMozDocumentRule
  67. {
  68. public:
  69.   NS_DECL_ISUPPORTS
  70.   NS_DECL_NSIDOMCSSMOZDOCUMENTRULE
  71.  
  72.   nsDOMCSSMozDocumentRule();
  73.  
  74. private:
  75.   ~nsDOMCSSMozDocumentRule();
  76.  
  77. protected:
  78.   /* additional members */
  79. };
  80.  
  81. /* Implementation file */
  82. NS_IMPL_ISUPPORTS1(nsDOMCSSMozDocumentRule, nsIDOMCSSMozDocumentRule)
  83.  
  84. nsDOMCSSMozDocumentRule::nsDOMCSSMozDocumentRule()
  85. {
  86.   /* member initializers and constructor code */
  87. }
  88.  
  89. nsDOMCSSMozDocumentRule::~nsDOMCSSMozDocumentRule()
  90. {
  91.   /* destructor code */
  92. }
  93.  
  94. /* readonly attribute nsIDOMCSSRuleList cssRules; */
  95. NS_IMETHODIMP nsDOMCSSMozDocumentRule::GetCssRules(nsIDOMCSSRuleList * *aCssRules)
  96. {
  97.     return NS_ERROR_NOT_IMPLEMENTED;
  98. }
  99.  
  100. /* unsigned long insertRule (in DOMString rule, in unsigned long index)  raises (DOMException); */
  101. NS_IMETHODIMP nsDOMCSSMozDocumentRule::InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval)
  102. {
  103.     return NS_ERROR_NOT_IMPLEMENTED;
  104. }
  105.  
  106. /* void deleteRule (in unsigned long index)  raises (DOMException); */
  107. NS_IMETHODIMP nsDOMCSSMozDocumentRule::DeleteRule(PRUint32 index)
  108. {
  109.     return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111.  
  112. /* End of implementation class template. */
  113. #endif
  114.  
  115.  
  116. #endif /* __gen_nsIDOMCSSMozDocumentRule_h__ */
  117.